<?php
/**
 * 脚本名：connConfig.php
 * 说明：mysql和redis连接参数设置类
 */

class Config {
	//public static $mysql_config;

	/*function __construct()
	{
		$dir = $_SERVER['DOCUMENT_ROOT']."dbconfig.php";
		$runtime_config=include $dir;
		self::$mysql_config=$runtime_config[0];
	}*/
    
    public static $mysql_config = array(
			//'host' => '127.0.0.1',
			'host' => 'rm-wz981l0dt392k882a.mysql.rds.aliyuncs.com',
			'port' => 3306,
			'username' => 'game_csmj_root',
			'password' => 'n@gf9dz#1YP*o#jTZ5f2KiS5r^omT!!P',
			'dbname' => 'cs_majdb',
			'charset' => 'utf8mb4',
	);
    	
	 
    public static $mod = 1;
    public static $redis_data_config = array(
        'redis0' => array('host' => 'r-wz9677b594374d94.redis.rds.aliyuncs.com', 'port' => 6379, 'pass' => 'ZR8nKBLGbRGZPqcp8k9zFHDN')
    );


	public static $ip_server_confing = array(
	      'ip' => 'mjgame.wgb.cn',
		  'port'=> '10001',      
	);
	
	//上报数据参数
	public static $data_report = array(
	       'ip' => '120.77.51.159',
	      'port'=> '5050' 
	);
	//上报数据请求token登录参数
    public static $info_report = array(
	    'cid'=>'eba0c31b24dd1c8a709f1e777475101a',
		'user'=>'loguser_im01',
		'pass'=>'D71594f4ed_',
		'reportTokenTime'=>43200
	);
	
	public static $logger = null;
	public static $loggerError = null;
	public static $loggerDebug = null;
	
}

Config::$logger =  new Logger("info");
Config::$loggerError =  new Logger("error");
Config::$loggerDebug =  new Logger("debug");
?>
